package com.ganbo.mybatis.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ganbo.mybatis.entity.User;
import com.ganbo.mybatis.mapper.UserMapper;
import com.ganbo.mybatis.service.UserService;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {


    @Override
    public List<User> listUser() {
        return lambdaQuery().orderByDesc(User::getId).list();
    }
}
